﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Payments.aspx.cs" Inherits="TCV_WEB.Admin.Page.Payments"
    Title="Untitled Page" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlacebody" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <table cellpadding="0" cellspacing="0" border="0" width="50px" class="tableForm">
        <tr>
            <td class="formTitle" colspan="2">
                Loại thanh toán &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Label ID="lblErr" runat="server" CssClass="errorText"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                Mã</td>
            <td>
                <asp:TextBox ID="txtCode" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                Tên
            </td>
            <td>
                <asp:TextBox ID="txtName" runat="server" Width="70%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="height: 18px">
                Tên VN
            </td>
            <td style="height: 18px">
                <asp:TextBox ID="txtNameVN" runat="server" Width="70%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="height: 18px">
                &nbsp;</td>
            <td style="height: 18px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="height: 18px">
                Giá 1</td>
            <td style="height: 18px">
                <telerik:RadNumericTextBox ID="txtValue1" Runat="server">
                </telerik:RadNumericTextBox>
            </td>
        </tr>
        <tr>
            <td style="height: 18px">
                &nbsp;</td>
            <td style="height: 18px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="height: 18px">
                Giá 2</td>
            <td style="height: 18px">
                <telerik:RadNumericTextBox ID="txtValue2" Runat="server">
                </telerik:RadNumericTextBox>
            </td>
        </tr>
        <tr>
            <td style="height: 18px">
                &nbsp;</td>
            <td style="height: 18px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="height: 18px">
                Giá 3</td>
            <td style="height: 18px">
                <telerik:RadNumericTextBox ID="txtValue3" Runat="server">
                </telerik:RadNumericTextBox>
            </td>
        </tr>
        <tr>
            <td style="height: 18px">
                &nbsp;</td>
            <td style="height: 18px">
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:HiddenField ID="hdID" runat="server" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <asp:Button ID="btnAddNew" runat="server" Text="Thêm mới" OnClick="btnAddNew_Click" />
                &nbsp;
                <asp:Button ID="btnSave" runat="server" Text="Lưu" OnClick="btnSave_Click" />
                &nbsp;
                <asp:Button ID="btnDelete" runat="server" Text="Xóa" OnClick="btnDelete_Click" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <br />
                <telerik:RadGrid ID="dgvList" runat="server" AutoGenerateColumns="False" GridLines="None"
                    Skin="Office2007" AllowSorting="True" OnItemCommand="dgvList_ItemCommand" OnNeedDataSource="dgvList_NeedDataSource"
                    ShowGroupPanel="True" AllowMultiRowSelection="True" 
                    onitemcreated="dgvList_ItemCreated">
                    <MasterTableView DataKeyNames="ID">
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn>
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="column6" Visible="False">
                                <ItemStyle Width="20px"></ItemStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridButtonColumn CommandName="Load" Text="Sửa" UniqueName="column8">
                            </telerik:GridButtonColumn>
                            <telerik:GridTemplateColumn HeaderText="STT" UniqueName="TemplateColumn1">
                                <ItemTemplate>
                                    <asp:Label ID="colSTT" runat="server"></asp:Label>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Mã" UniqueName="column">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Name" HeaderText="Tên" UniqueName="column1">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="NameVN" HeaderText="Tên VN" 
                                UniqueName="column2">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings AllowDragToGroup="True">
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
                </telerik:RadGrid>
            </td>
        </tr>
        <tr>
            <td align="center" style="padding-bottom: 20px" colspan="2">
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
    </table>

    <script language="javascript" type="text/javascript">
    function validform(){    
	if(ValidateForm('tblManagePartner','divError','ctl00_ContentPlacebody_')==false)  return false;	
	if(ValidateWebAddress('ctl00_ContentPlacebody_txtLinkPartner','divError')==false)  return false;
	return true;
} 
    </script>

</asp:Content>
